sudo apt-get install pandoc wkhtmltopdf
pandoc README.md -o README.pdf --pdf-engine wkhtmltopdf \
--css styles.css \
-V margin-top=11mm \
-V margin-bottom=11mm \
-V margin-left=11mm \
-V margin-right=11mm \
, body {
htmlfont-family: Arial, Helvetica, sans-serif;
line-height: 1.5;
font-size: 18px;
},h2,h3 {
h1font-weight: bold;
}
h1 {padding-top: 0;
margin-top: 0;
border-bottom: 1px solid black;
}
h2 {padding-top: 15px;
border-top: 1px solid black;
}, code {
blockquotepadding: 0 1em;
margin: 0;
color: black !important;
background-color: rgb(235, 235, 235);
}.columnList ul{ margin: 0; }
To debug CSS styles, export to html instead by changing the extension ... -o README.html ...